<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dealer_model extends CI_Model 
{ 
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
	
    function upload_image(){	  
        $config['upload_path'] = './images/';
        $config['allowed_types'] = 'gif|jpg|png|jpeg';
        $config['max_size']	= '10000';
        $config['max_width']  = '1024';
        $config['max_height']  = '1024';
        $this->load->library('upload', $config);
        $this->upload->initialize($config);
        $this->upload->do_upload('image');
    }        
}
